package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    User getUserById(String id);

    List<User> getAllUsers();

    void insertUser(User user);

    void updateUser(User user);

    void deleteUser(String id);

    User login(@Param("username") String username, @Param("password") String password);

}
